package com.tao.picture.ui.girl.data.remote

import com.tao.picture.ui.girl.data.entity.Girl
import dagger.hilt.android.scopes.ViewModelScoped
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * retrofit的service
 */
@ViewModelScoped
interface ImageService {

    @GET("random/category/{category}/type/{type}/count/{count}")
    suspend fun getInfo(
        @Path("category") category: String,
        @Path("type") type: String,
        @Path("count") count: Int
    ): List<Girl>


    @GET("random/category/Girl/type/Girl/count/10")
    suspend fun getImages(): List<Girl>

    @GET("random/category/Girl/type/Girl/count/1")
    suspend fun getImage(): List<Girl>

}